import svelte from 'rollup-plugin-svelte';
export default{
     input:'./src/echartTemp.svelte',
     output:[
           {
              format:'esm',
              file:'./dist/ecomps.esm.js',
              name:'ecomps'  
           },
           {
            format: 'umd',
            file: './dist/ecomps.umd.js',
            name:'ecomps',
            globals: {
              svelte: 'svelte',
              'svelte/internal': 'svelteInternal',
              'size-sensor': 'sizeSensor',
            },
          },
     ],
     plugins: [svelte()],
     external: ['svelte', 'svelte/internal']
}